package com.jmxcfc.blfsc.common.common.enums;

/**
 * 异常编码和描述 enum
 *
 * @author pbs
 */
public enum BaseErrorEnum {

    OK("STATUS_OK", "处理成功！"),
    FAIL("STATUS_FAIL", "处理失败!异常信息: "),
    START("START", "开始处理!"),

    EXCEPTION_INIT_RESPONSE("INIT_RESPONSE", "响应体初始化异常!"),
    EXCEPTION_BEFORE_PROCESS("BEFORE_PROCESS", "前置处理异常!"),
    EXCEPTION_OUTBOUND("OUTBOUND", "外呼异常!"),
    EXCEPTION_AFTER_PROCESS("AFTER_PROCESS", "后置处理异常!"),
    EXCEPTION_GLOBAL_HANDLER_EXCEPTION("GLOBAL_HANDLER_EXCEPTION", "全局异常处理!"),
    EXCEPTION_UNEXPECTED("UNEXPECTED", "非常规异常!"),
    EXCEPTION_VALID_HEADER("EXCEPTION_VALID_HEADER", "请求头header校验异常!"),
    EXCEPTION_VALID_BODY("EXCEPTION_VALID_BODY", "请求体body校验异常!"),
    EXCEPTION_VALID_BODY_EXTEND("EXCEPTION_VALID_BODY_EXTEND", "请求体的扩展字段extend校验异常!"),
    EXCEPTION_ERROR_REPETITION("EXCEPTION_ERROR_REPETITION", "存在重复流水号请求!"),
    ;

    private String value;
    private String msg;

    BaseErrorEnum(String value, String msg) {
        this.value = value;
        this.msg = msg;
    }

    public String getValue() {
        return this.value;
    }

    public String getMsg() {
        return this.msg;
    }
}
